package user;

import book.BookList;
import operation.BorrawOperation;
import operation.Ioperation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Administrator
 * Date: 2023-03-25
 * Time: 15:39
 */
public abstract class User {
    protected String name;
    public Ioperation[] ioperations;

    public User(String name) {
        this.name = name;
    }
    public abstract int menu();
    public void doOperation(int choice, BookList bookList){
       this.ioperations[choice].work(bookList);
    }
}
